package javase0822;

public class Demo05 {
    public static void main(String[] args) {
        int[] arr1 = new int[5];

        int[] arr2 = new int[]{1, 2, 3};

        System.out.println(arr2.length);
        if (6 < arr1.length) {
            arr1[6] = 10;
        }

        int[][] arr3 = new int[][]{new int[]{1, 2, 3},
                new int[]{1, 2}, new int[]{1, 2, 3}};

        System.out.println("数组遍历");
        for (int i = 0; i < arr2.length; i++) {
            System.out.println(arr2[i]);
        }

        for (int temp : arr2) {
            System.out.println(temp);
        }

    }
}
